﻿@model GameSchoolApplication.Models.Game

@{
    ViewBag.Title = "GameLevelIndex";
    Layout = "~/Views/Shared/_StudentLayout.cshtml";
}

@section More {
<section id="More">
    <ul>
        <li><a href="#" id="showdes">Upplýsingar um leik</a></li>
        <li><a href="#" id="showlvl">Borð</a></li>
        <li><a href="#" id="showpoint">Stig leiks</a></li>
        <li>@Html.ActionLink("Svindlarahornið", "#", "#")</li>
    </ul>
</section>
        }
<div class="tabbed" id="Student">
    <ul>
        @foreach (var level in Model.Levels)
        {
            <li class="tabs"><a href="#level-@level.LevelId">@level.Title</a></li>
        }
    </ul>

    @foreach (var level in Model.Levels)
    {
        <div id="level-@level.LevelId">
            <div class="levelassignments">
                <h3>Verkefni</h3>
                <ol>
                @foreach (var assignment in level.Assignments)
                {
                    <li>@Html.ActionLink(@assignment.Title, "HandIn", "Assignment", new { assignmentId = assignment.AssignmentId }, new { })</li>
                }
                </ol>
            </div>
            <div class="leveltests">
                <h3>Próf</h3>
                <ol>
                @foreach (var test in level.Tests)
                {
                    <li>@Html.ActionLink(@test.TestName, "HandIn", "Test", new { testId = test.TestId }, new { })</li>
                }
                </ol>
            </div>
            <div class="levelvideo">
                <h3>Myndbönd</h3>
                <ol>
                @foreach (var video in level.Videos)
                {
                    <li>@Html.ActionLink(video.Title, "Watch", "Video", new { id = video.VideoId }, new { })</li>
                }
                </ol>
            </div>
        </div>
    }
</div>    







    
